package com.ruoyi.shop.goods.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 *商品sku信息对象 shop_goods_sku
 * 
 * @author xuxiang
 */

public class ShopGoodsSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long skuId;
    
    /** 库存名称 */
    @Excel(name = "库存名称")
    private String skuName;
    
    /** 库存名称 */
    private String[] sku_name_arr;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;
    
    /** 商品名称 */
    private String goodsName;

    /** 编号(条形码) */
    @Excel(name = "sku编号(条形码)")
    private String barcode;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;
    
    /** 市场价 */
    @Excel(name = "市场价")
    private BigDecimal marketPrice;
    
    /** 成本 */
    @Excel(name = "成本")
    private BigDecimal cost;

    /** 库存 */
    @Excel(name = "库存")
    private Integer stock;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 体积 */
    @Excel(name = "体积")
    private BigDecimal volume;
    
	/** 商品主图 */
	private String image;


    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}

	public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setBarcode(String barcode) 
    {
        this.barcode = barcode;
    }

    public String getBarcode() 
    {
        return barcode;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStock(Integer stock) 
    {
        this.stock = stock;
    }

    public Integer getStock() 
    {
        return stock;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setVolume(BigDecimal volume) 
    {
        this.volume = volume;
    }

    public BigDecimal getVolume() 
    {
        return volume;
    }
    
    public BigDecimal getCost() {
		return cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public BigDecimal getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(BigDecimal marketPrice) {
		this.marketPrice = marketPrice;
	}
	

	public String[] getSku_name_arr() {
		return sku_name_arr;
	}

	public void setSku_name_arr(String[] sku_name_arr) {
		this.sku_name_arr = sku_name_arr;
	}
	

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("skuId", getSkuId())
            .append("skuName", getSkuName())
            .append("image", getImage())
            .append("sku_name_arr", getSku_name_arr())
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("barcode", getBarcode())
            .append("price", getPrice())
            .append("marketPrice", getMarketPrice())
            .append("cost", getCost())
            .append("stock", getStock())
            .append("weight", getWeight())
            .append("volume", getVolume())
            .toString();
    }
}
